package com.moyuaninfo.myyserver.vo;

import com.moyuaninfo.myyserver.entity.Dvr;
import com.moyuaninfo.myyserver.enums.DwPTZCommandEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author QiuXiangBa
 * @version 1.0
 */
@Data
@ApiModel(value = "hikPtzControlOtherVo", description = "云台基本控制操作接收数据POJO")
public class HikPtzControlOtherVo {

    @ApiModelProperty(name = "dvr", value = "设备信息" , dataType = "Dvr", required = true)
    @NotNull(message = "请输入设备信息")
    private Dvr dvr;

    @ApiModelProperty(name = "dwPtzCommand", value = "云台控制命令", dataType = "String", required = true, example = "TILT_UP")
    @NotNull(message = "请输入云台控制命令")
    private DwPTZCommandEnum dwPtzCommand;

    @ApiModelProperty(name = "dwStop", value = "云台停止动作或开始动作：0－开始，1－停止", dataType = "int", required = true, example = "0")
    @NotNull(message = "请选择动作类型")
    private int dwStop;

    @ApiModelProperty(name = "dwSpeed", value = "云台控制的速度，用户按不同解码器的速度控制值设置。取值范围[1,7]", dataType = "int", required = true, example = "1")
    private int dwSpeed;

}
